using Microsoft.SqlServer.Management.Sdk.Sfc;
using System;

namespace Microsoft.SqlServer.Management.SqlManagerUI
{
	internal class ObjectInfo
	{
		private string _name;

		private string _schema;

		private Urn _urn;

		public string Name
		{
			get
			{
				return this._name;
			}
			set
			{
				this._name = value;
			}
		}

		public string Schema
		{
			get
			{
				return this._schema;
			}
			set
			{
				this._schema = value;
			}
		}

		public Urn Urn
		{
			get
			{
				return this._urn;
			}
			set
			{
				this._urn = value;
			}
		}

		public string FullName
		{
			get
			{
				string str = (!string.IsNullOrEmpty(this._schema)) ? (this._schema + ".") : "";
				return str + this._name;
			}
		}

		public ObjectInfo()
		{
		}

		public ObjectInfo(string name, Urn urn, string schema)
		{
			this._schema = schema;
			this._name = name;
			this._urn = urn;
		}

		public ObjectInfo(string name, Urn urn) : this(name, urn, null)
		{
		}
	}
}
